import java.io.*;

public class Problem145 {

public static void main(String args[]){
int count=0;
int temp=0;
int rev=0;
int sum=0;

for(int i=0; i<(100000000); i++){
if(i%10==0){continue;}
rev=0;
temp=i;

while(temp!=0){
rev*=10;
rev+=(temp%(10));
temp-=(temp%10);
temp/=10;
}
sum=rev+i;
if(rev%10==0){continue;}
count++;
while(sum!=0){
temp=(sum%10);
sum=(sum-temp)/10;
if(temp%2==0){count--;break;}
}
}
System.out.println("Reversible: "+count);
}

}